package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class CompanyBaidumap implements Serializable {

	private static final long serialVersionUID = 7000293861225951090L;

	//fields
	private java.lang.Integer companyId;
	private java.lang.String x;
	private java.lang.String y;
	private java.lang.Integer z;
	private java.sql.Timestamp lastupdate;

	//default constructor
	public CompanyBaidumap() {
	}

	//getter
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.lang.String getX() {
		return x;
	}
	public java.lang.String getY() {
		return y;
	}
	public java.lang.Integer getZ() {
		return z;
	}
	public java.sql.Timestamp getLastupdate() {
		return lastupdate;
	}

	//setter
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setX(java.lang.String x) {
		this.x = x;
	}
	public void setY(java.lang.String y) {
		this.y = y;
	}
	public void setZ(java.lang.Integer z) {
		this.z = z;
	}
	public void setLastupdate(java.sql.Timestamp lastupdate) {
		this.lastupdate = lastupdate;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof CompanyBaidumap))
			return false;

		final CompanyBaidumap companyBaidumap = (CompanyBaidumap)other;
		if (!this.companyId.equals(companyBaidumap.getCompanyId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(companyId).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("CompanyBaidumap[")
			.append("companyId=").append(companyId).append(", ")
			.append("x=").append(x).append(", ")
			.append("y=").append(y).append(", ")
			.append("z=").append(z).append(", ")
			.append("lastupdate=").append(lastupdate).append("]").toString();
	}
}